package com.mashibing.controller;

import com.mashibing.service.TBOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zjw
 * @description
 */
@RestController
@Slf4j
public class OrderManageController {

    @Autowired
    private TBOrderService orderService;

    @Autowired
    private RabbitTemplate rabbitTemplate;


    @GetMapping("create")
    public void create() {
        orderService.save();
        log.info("创建订单成功！！");

    }

}
